package edu.cuit.canary.dto.mapper;

import edu.cuit.canary.dto.OrderDto;
import edu.cuit.canary.po.Order;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface OrderMapper {
    OrderMapper INSTANCE = Mappers.getMapper(OrderMapper.class);

    @Mapping(target = "user", ignore = true)
    OrderDto order2orderDto(Order order);
}
